package org.uncas.homepage.client.valuobject;

import com.google.gwt.user.client.rpc.IsSerializable;


public class PicasaAlbumData implements IsSerializable {
	
	private String title;
	private String albumUrl;
	private String thumbUrl;
	
	public String getAlbumUrl() {
		return albumUrl;
	}
	public void setAlbumUrl(String albumUrl) {
		this.albumUrl = albumUrl;
	}
	public String getThumbUrl() {
		return thumbUrl;
	}
	public void setThumbUrl(String thumbUrl) {
		this.thumbUrl = thumbUrl;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getHtmlString() {
		StringBuffer sb = new StringBuffer();
		sb.append("<table style=\"width:194px;\">");
		sb.append("<tr>");
		sb.append("<td align=\"center\" style=\"height:194px;background:url(http://picasaweb.google.com/f/img/transparent_album_background.gif) no-repeat left\">");
		sb.append("<a href=\"");
		sb.append(albumUrl);
		sb.append("\">");
		sb.append("<img src=\"");
		sb.append(thumbUrl);
		sb.append("\" width=\"160\" height=\"160\" style=\"margin:1px 0 0 4px;\">");
		sb.append("</a>");
		sb.append("</td>");
		sb.append("</tr>");
		sb.append("<tr>");
		sb.append("<td style=\"text-align:center;font-family:arial,sans-serif;font-size:11px\">");
		sb.append("<a href=\"");
		sb.append(albumUrl);
		sb.append("\" style=\"color:#4D4D4D;font-weight:bold;text-decoration:none;\">");
		sb.append(title);
		sb.append("</a>");
		sb.append("</td>");
		sb.append("</tr>");
		sb.append("</table>");			
		return sb.toString();
	}

}
